<?php get_header(); ?>
<div id="postlist">

<?php if(have_posts()) : while (have_posts()) : the_post(); ?>
	<div id="post-<?php the_ID(); ?>" class="post-home">
		<div class="post-title"><h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2><span><?php comments_popup_link('我抢沙发', '1 条评论', '% 条评论'); ?></span></div>
		<div class="post-content"><?php the_content(__('继续阅读 &gt;')); ?>
		</div>
		<div class="post-messages"><span><?php the_time('Y年m月d日'); ?></span><span>标签: <?php the_tags('', ',', ' '); ?></span><span>分类: <?php the_category(',') ?></span>
			</div>
	</div>
<?php endwhile; else: ?>
	<div id="featured-post"><h2>好像出了一点小状况</h2><p>您所访问的这个页面好像不存在了或者还没有这个页面，你可以搜索看看，或者去其他页面看看。</p></div>	
<?php endif; ?>

	<div class="navigation clearfix">
		<div class="alignleft"><?php previous_posts_link(__('上一页')) ?></div>
		<div class="alignright"><?php next_posts_link(__('下一页')) ?></div>
	</div>

</div>
<?php include (TEMPLATEPATH . '/sidebar.php'); ?>

<?php get_footer(); ?>